package com.system.service;

import com.system.pojo.Department;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * Created by 陈文杰 on 2022/6/5 17:45
 */
//@Service
public interface DepartmentService {
    //查询全部部门
    List<Department> queryDeptAll();

    //根据部门名查询部门信息
    Department queryDeptByName(String deptName);

    //根据部门号查询部门信息
    Department queryDeptById(int deptId);

    //添加部门信息
    int addDepartment(Department department);

    //根据部门号修改部门信息
    int updateDepartmentById(Map<String,Object> map);

    //根据部门名修改部门信息
    int updateDepartmentByName(Map<String,Object> map);

    //根据部门号删除部门信息
    int deleteDepartmentById(int deptId);

    //根据部门名删除部门信息
    int deleteDepartmentByName(String deptName);
}
